<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<title>登录</title>

<!-- Bootstrap -->
<link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/bootstrap/js/bootstrap.min.js"></script>
<script>
function submitForm(){
	$("#loginForm").submit();
}
</script>
</head>
<body>
	<div id="nav">
		<nav class="navbar navbar-default">
			<div class="container-fluid">
				<!-- Brand and toggle get grouped for better mobile display -->
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed"
						data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"
						aria-expanded="false">
						<span class="sr-only">Toggle navigation</span> <span
							class="icon-bar"></span> <span class="icon-bar"></span> <span
							class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="#">江莱农场</a>
					<button type="button" class="btn btn-default navbar-btn">登录</button>
				</div>
			</div>
			<!-- /.container-fluid -->
		</nav>
	</div>
	<div id="content">
		<div class="jumbotron">
		  <div class="container">
			 <div class="panel panel-default">
			   <div class="panel-heading">
			      <h3 class="panel-title">
			         	登录
			      </h3>
			   </div>
			   <div class="panel-body">
					<c:if test="${result != null}">
						<c:if test="${result.messageType=='message'}">
							<div class="alert alert-success" role="alert">
								${result.message}
							</div>
						</c:if>
						<c:if test="${result.messageType=='warn'}">
							<div class="alert alert-danger" role="alert">
								${result.message}
							</div>
						</c:if>
					</c:if>
					<form action="/login/login.do" method="post" id="loginForm">
							<table>
								<tr>
									<td>
										<div class="input-group input-group-lg" style="padding:1em">
											<span class="input-group-addon" id="sizing-addon1">用户名</span> <input
												type="text" class="form-control" placeholder="用户名"
												aria-describedby="sizing-addon1" name="userName">
										</div>
									</td>
								</tr>
								<tr>
									<td>
										<div class="input-group input-group-lg" style="padding:1em">
											<span class="input-group-addon" id="sizing-addon2">密&nbsp;&nbsp;&nbsp;&nbsp;码</span> <input
												type="password" class="form-control" placeholder="密码"
												aria-describedby="sizing-addon1" name="password">
										</div>
									</td>
								</tr>
								<tr>
									<td style="padding-left:1em">
										<a href="#" class="btn btn-primary" role="button" onclick="submitForm()">提交</a>&nbsp;&nbsp;
										<a href="/login/registPage.do" class="btn btn-default" role="button">注册</a>
									</td>
								</tr>
							</table>
					</form>
			   </div>
			 </div>
		  </div>
		</div>
	</div>
	<div id="foot"></div>
</body>
</html>